home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1995 #5 & #6
/
Amiga Plus CD - 1995 - No. 5 and 6.iso
/
pd
/
serien
/
purity
/
nr.10
/
demo
/
sparx.i
/
.spark02.i
next >
Wrap
Text File
|
1995-04-19
|
985b
|
59 lines
Procedure Spark02;
Const
max2lines = 48;
Type
Sp1lines = Array[1..max2lines] of line;
Sp1LinesPtr = ^Sp1Lines;
Var
arr : Sp1LinesPtr;
cnt1 : Short;
cnt2 : Short;
CCNT : Short;
add1 : Short;
add2 : Short;
actualline : Short;
Begin
New(arr);
ActualLine := 1;
cnt1 := 1;
cnt2 := 3;
CCNT := 2;
add1 := 7;
add2 := 4;
Repeat
EraseLine( Adr(arr^[actualline]) );
With arr^[actualline] do begin
x1 := 160 + XSin^[cnt1] * 7 DIV 5; { +1 140 }
y1 := 120 + XCos^[cnt1+5];
x2 := 160 + XSin^[cnt2] * 7 DIV 5; { +- 140 }
y2 := 120 + XCos^[cnt2+5];
end;
cnt1 := cnt1 + add1;
if cnt1>627 then cnt1:= cnt1-628;
cnt2 := cnt2 + add2;
if cnt2>627 then cnt2:= cnt2-628;
DrawLine( Adr(arr^[actualline]), cnt2 );
inc( CCNT );
If CCNT > maxColors then CCNT := 2;
inc( actualline );
If actualline > max2lines then actualline := 1;
Until LeftMouseButton;
Ciao;
Dispose(arr);
SetSColors( Adr(Def_Colors) );
End;